/****************************************************************************************************/
/**
\file       OS_Task.c
\brief      OS task module 
\date       08/03/2014
*/
/****************************************************************************************************/

 #include "OS_Task.h"
 #include "OS_TaskM.h"
 

 TASK(Task_1p56ms)
 {  
    u32 index;
    TaskType currentRunning;
    PORTA_PA0 = 1;
    for(index=DELAY_TASK_1; index ; index--);
    PORTA_PA0 = 0;
    (void)TerminateTask();
 }
 
TASK(Task_6p25ms) 
{
    u32 index;
    PORTA_PA1 = 1;
    for(index=DELAY_TASK_2; index ; index--);
    PORTA_PA1 = 0;
    (void)TerminateTask();
}

TASK(Task_12p5ms) 
{
    u32 index;
     TaskType currentRunning;
    PORTA_PA2 = 1;
    for(index=DELAY_TASK_3; index ; index--);
    PORTA_PA2 = 0;
    (void)TerminateTask();
}

TASK(Task_25ms)
{
    TaskType currentRunning;
    u32 index;
    PORTA_PA3 = 1;
    for(index=DELAY_TASK_4; index ; index--);
    PORTA_PA3 = 0;
    (void)TerminateTask();
}

TASK(Task_50ms)
{
    TaskType currentRunning;
    u32 index;
    PORTB_PB0 = 1;
    for(index=DELAY_TASK_5; index ; index--);
    PORTB_PB0 = 0;
    (void)TerminateTask();
}

TASK(Task_100ms)
{
    u32 index;
     TaskType currentRunning;
    PORTB_PB1 = 1;
    for(index=DELAY_TASK_6; index ; index--);
    PORTB_PB1 = 0;
    (void)TerminateTask(); 
}

